package adapter;

import bean.MultipleItem;
import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dispatchapp.andlei.R;

import java.util.List;

/**
 * @author Andlei
 * @date 2019/10/9.
 */
public class MyWalletAdapter extends BaseMultiItemQuickAdapter<MultipleItem, BaseViewHolder> {
    /**
     * Same as QuickAdapter#QuickAdapter(Context,int) but with
     * some initialization data.
     *
     * @param data A new list is created out of this one to avoid mutable list
     */
    public MyWalletAdapter(List<MultipleItem> data) {
        super(data);
        addItemType(MultipleItem.ONE, R.layout.item_mywallt_one);
        addItemType(MultipleItem.TWO, R.layout.item_mywallt_two);
    }

    @Override
    protected void convert(BaseViewHolder helper, MultipleItem item) {
//        switch (item.getItemType()){
//            case MultipleItem.ONE:
//
//                break;
//            case MultipleItem.TWO:
//
//                break;
//        }
    }
}
